import { createSlice } from '@reduxjs/toolkit'

let MrSlice = createSlice({
    name: "MrSlice",
    initialState: {
        count: 0
    },
    reducers: {
        addcount(state, action) {
            state.count += action.payload
            return state
        }
    }
})

export let { addcount } = MrSlice.actions

export default MrSlice